package com.mjlf.hometeach.common.service.assit;

import com.mjlf.hometeach.common.db.assit.GradeDAO;
import com.mjlf.hometeach.common.entity.assit.Grade;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @auther a123
 * @create 2018-05-06 11:25
 * @desc 班级分类服务
 */
@Service
public class GradeService implements GradeDAO {
    @Autowired
    private GradeDAO gradeDAO;

    @Override
    public int save(Grade grade) {
        return gradeDAO.save(grade);
    }

    @Override
    public int deleteById(Integer gradeId) {
        return gradeDAO.deleteById(gradeId);
    }

    @Override
    public List<Grade> listAllGrade() {
        return gradeDAO.listAllGrade();
    }
}
